Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for swap bytecode and simple WITH_EXCEPT_START bytecode support. #488

Merged
merged 16 commits into from
Jun 23, 2024

Conversation

ddouworld
Copy link
Contributor

Add support for swap bytecode and simple WITH_EXCEPT_START bytecode support.
The sample code is as follows

def SWAP():
    my_array = [
        1,
        2,
        3,
        4,
        5,
        6,
        8]
    i = 1
    j = 3
    my_array[i], my_array[j], my_array[2] = my_array[j], my_array[i], my_array[4]

Generate results

def SWAP():
    my_array = [
        1,
        2,
        3,
        4,
        5,
        6,
        8]
    i = 1
    j = 3
    my_array[i], my_array[j], my_array[2] = my_array[j], my_array[i], my_array[4]

I don't use git very well, so please forgive me for creating so many commits!😭😭
Next time I submit a pr, I think I'll reduce the commit

@ddouworld ddouworld changed the title Add support for swap bytecode and simple WITH_EXCEPT_START bytecode support. Add support for swap bytecode and simple WITH_EXCEPT_START bytecode support. Jun 1, 2024
@zrax zrax merged commit 6ad3ceb into zrax:master Jun 23, 2024
4 checks passed
@Levak Levak mentioned this pull request Jun 24, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants